package com.dlc.yunguang.model;

import com.dlc.yunguang.model.intfc.ProductList;

/**
 * todo 产品规格类，临时定义为这样，以后要改
 */
public class ProductListImpl implements ProductList {

    private String name;
    private String category;
    private int length;
    private int width;
    private int amount;
    private String manufacturer;
    private String where;

    public ProductListImpl() {
    }

    public ProductListImpl(String name, String category, int length, int width, int amount,
        String manufacturer, String where) {
        this.name = name;
        this.category = category;
        this.length = length;
        this.width = width;
        this.amount = amount;
        this.manufacturer = manufacturer;
        this.where = where;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getSpec() {
        return category + " " + length + "*" + width;
    }

    @Override
    public String getManufacturer() {
        return manufacturer;
    }

    @Override
    public int getAmount() {
        return amount;
    }

    @Override
    public String getWhere() {
        return where;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    public void setWhere(String where) {
        this.where = where;
    }
}
